In [11]:
from pyCMR.pyCMR import CMR

Provide config file


In [12]:
cmr=CMR("../cmr.cfg")

Search for granule using dataset name and datetime


In [13]:
results = cmr.searchGranule(entry_title='MODIS/Aqua Near Real Time (NRT) Thermal Anomalies/Fire 5-Min L2 Swath 1km (C005)',
                        temporal="2016-04-11T12:00:00Z,2016-04-11T13:00:00Z")
for res in results:
    print(res.getDownloadUrl())

Further subset using bounding box


In [9]:
results = cmr.searchGranule(entry_title='MODIS/Aqua Near Real Time (NRT) Thermal Anomalies/Fire 5-Min L2 Swath 1km (C005)',
                        temporal="2016-04-11T12:00:00Z,2016-04-11T13:00:00Z", bounding_box="30,26,90,31")
for res in results:
    print(res.getDownloadUrl())